package de.sr.gwtdemo.server.service;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;

import de.sr.gwtdemo.client.service.UserService;
import de.sr.gwtdemo.shared.model.User;

public class UserServiceImpl implements UserService, InitializingBean {

	private static final Logger log = LoggerFactory
			.getLogger(UserServiceImpl.class);

	public UserServiceImpl() {
	}

	public User getActualUser() {
		User user = new User();

		List<String> roles = new ArrayList<String>();
		user.setName("Dummy Bernert");
		user.setRoles(roles);
		return user;
	}

	public void afterPropertiesSet() throws Exception {
		log.debug("Properties set.");
	}

}
